package netty.dubbo.server.server;

import netty.dubbo.server.registry.ZkRegistryCenter;

/**
 * @author: 程序员七哥
 * @date: 2021-12-19
 * @description: 服务端启动类
 */
public class RpcServerStarter {

    public static void main(String[] args) throws Exception {
        RpcServer rpcServer = new RpcServer();
        // 发布服务
        rpcServer.publish(new ZkRegistryCenter(), "localhost:8888", "netty.dubbo.server.provider");
        // 启动服务
        rpcServer.start();
    }
}
